@mixin comp($key,$val) {
    -ms-#{$key}:$val;
    -moz-#{$key}:$val;
    -webkit-#{$key}:$val;

}
@mixin position($val1,$val2,$val3,$val4){
                    width: 1500px;
                    height: 488px;
                    position: relative;
                    text-align: center;
                    img{
                        
                        width: 1096px;
                        height: 488px;
                    }
                    h3{
                        width: 400px;
                        font-size: 30px;
                        color: white;
                        position: absolute;
                        top: $val1;
                        left: $val2;
                    }
                    a{
                        display: block;
                        position: absolute;
                        top: $val3;
                        left: $val4;
                        display: flex;
                        span:nth-child(1){
                            display: block;
                            width: 16px;
                            height: 16px;
                            font-size: 12px;
                            font-weight: bold;
                            text-align: center;
                            // font-family: ;
                            color:white;
                            line-height: 16px;
                            border-radius: 50%;
                            background-color:#c7b197;
                        }
                        span:nth-child(2){
                            display: block;
                            
                            height: 16px;
                            line-height: 16px;
                            // font-family: ;
                            // font-weight: bold;
                            color:white;
                            margin-left: 10px;
                        }
                        &:hover span:nth-child(1){
                            background-color: #a69073;
                        }
                    }

}
@mixin goods{
    width: 1098px;
    height: 432px;

    ul{
        width: 1098px;
        height: 432px;
        display: flex;
        justify-content:space-around;
        li{
            width:262px;
            height: 395px;
            background-color: white;
            overflow: hidden;
            @include comp(box-shadow,0.3s ease 0s);
            a{
                display: block;
                width:262px;
                height: 395px;
                overflow: hidden;
                img{
                    background-color: #f5f5f5;
                    width: 262px;
                    height: 260px;
                }
                .newGoods{
                    // display: block;
                    width: 57px;
                    height: 16px;
                    margin-top: 5px;
                    margin-left: 5px;
                    background-color: #cdbc7a;
                    color: white;
                    text-align: center;
                }
                p:nth-of-type(2){
                    font-size: 9px;
                    font-weight: 200px;
                    margin-top: 5px;
                    margin-left: 5px;
                    color: #675554;
                }
                p:nth-of-type(3){
                    width: 17px;
                    height: 17px;
                    margin-top: 5px;
                    margin-left: 5px;
                    border:1px solid black;
                    border-radius: 50%;
                    span{
                        display: block;
                       margin: 0 auto;
                        width: 15px;
                        height: 15px;
                        background-color:#e5ae87 ;
                        border-radius: 50%;
                    }
                }
                p:nth-of-type(4){
                    font-size: 9px;
                    // font-weight: 200px;
                    margin-top: 5px;
                    margin-left: 5px;
                    color: #675554;
                }
                p:nth-of-type(5){
                    font-size: 9px;
                    // font-weight: 200px;
                    margin-top: 5px;
                    margin-left: 5px;
                    color: #675554;
                }
                

            }
            &:hover{
                box-shadow: rgba(0, 0, 0, 0.13) 0px 10px 20px 0px, rgba(0, 0, 0, 0.19) 0px 3px 9px 0px;
             }
           
        }
    }
}
@mixin goodsBanner($val1,$val2,$val3,$val4,$val5,$val6,$val7,$val8){
    h3{
        font-size: 38px;
        color: white;
        position: absolute;
        font-weight: 300;
        top: $val1;
        right:$val2;
    }
    &>p:nth-of-type(1){
        font-size: 18px;
        color: white;
        position: absolute;
        font-weight: 300;
        top: $val3;
        right: $val4;
    }
    &>p:nth-of-type(2){
        font-size: 12px;
        color: white;
        position: absolute;
        font-weight: 300;
        top: $val5;
        right: $val6;
    }
    a{
        display: block;
        width: 150px;
        height: 30px;
        font-size: 12px;
        position: absolute;
        top: $val7;
        right: $val8;
        color:white;
        text-align: center;
        line-height: 28px;
        box-sizing: border-box;
        border: 1px solid white;
        &:hover{
            background-color: #273751;
        }
    }
}
.banner{
    margin-top: 100px;
    width: 100%;
    height: 488px;
    background-color: black;
    position: relative;
    overflow: hidden;
    .showImg{
        width:1500px;
        height: 488px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
        .loadImg{
            height: 488px;
            position: absolute;
            top: 0;
            // left: -4500px;
            ul{
                height: 488px;
                display: flex;
                .switchOne{
                    @include position(40%,48%,50%,58%);
                }
                .switchTow{
                    @include position(35%,20%,55%,30%);
                }
                .switchThree{
                    @include position(35%,50%,55%,62%);
                }
            }
            
        }
        .prve{
            display: block;
            width: 21px;
            height: 41px;
            // background-color: black;
            background: url("../img/prev_next.webp") no-repeat black;
            position: absolute;
            top: 50%;
            left: 0;
            margin-top: -22px;
        }
        .next{
            display: block;
            width: 21px;
            height: 41px;
            // background-color: black;
            background: url("../img/prev_next.webp") no-repeat;
            background-position: 0 -41px;
            position: absolute;
            top: 50%;
            right: 0;
            margin-top: -22px;
        }
    }
}
.dis-box{
    width: 100%;
    height: 45px;
    background-color: #f4f4f4;
    .dis{
        width: 1098px;
        height: 45px;
        margin: 0 auto;
        p{
            text-align: center;
            line-height: 45px;
            font-size: 14px;
            letter-spacing: 4px;
            font-weight: 300;
            color: #000000;
        }
    }
}
.rm-box{
    width: 100%;
    height: 2017px;
    
    .rm{
        width: 1098px;
        height: 2017px;
        margin: 0 auto;
       
        .rmRandom{
            width: 1098px;
            height: 512px;
       
            &>p{
                width: 80px;
                height: 80px;
                text-align: center;
                line-height: 80px;
                display: block;
                margin: 0 auto;
                font-size: 20px;
                font-family: Sans-serif;
                font-weight: 300;
            }
            .showGoods{
               @include goods()
            }
            .ladyGoods{
                width: 1098px;
                height: 752px;
                margin: 0 auto;
                // background-color: gold;
                .ladyBanner{
                    width: 1098px;
                    height: 310px;
                    overflow: hidden;
                    position: relative;
                    background-color: black;
                    margin-bottom: 20px;
                    img{
                        width: 348px;
                        height: 420px;
                        position: absolute;
                        top: 0;
                        left: 15%;
                    }
                    @include goodsBanner(22%,25%,41%,25%,52%,26%,62%,25%);
                    
                }
                .showGoods{
                    @include goods()
                }
            }
            .manGoods{
                width: 1098px;
                height: 752px;
                margin: 0 auto;
                
                .manBanner{
                    width: 1098px;
                    height: 310px;
                    overflow: hidden;
                    position: relative;
                    margin-bottom: 20px;
                    img{
                        width: 1098px;
                       height: 310px;
                       
                    }
                    @include goodsBanner(25%,70%,43%,70%,53%,71%,63%,70%)

                }
               .showGoods{
                @include goods()
               }
            }

        }
    }
}




 